@extends('admin.layouts.wap_simple')
@section('title','小程序注册企业模版')
@section('content')

<div class="mview-card-content">
    @forelse($templateMinis as $templateMini)
    <div class="mview-card-item">
        <div class="mview-header">
            <div class="left">
                <h5>{{ $templateMini->code }}</h5>
                <h3>{{ $templateMini->enterprise_name }}</h3>
            </div>
            @if($templateMini->code_type == 1)
            <div class="mview-btn">信用代码</div>
            @elseif($templateMini->code_type == 2)
            <div class="mview-btn">组织机构代码</div>
            @else
            <div class="mview-btn">营业执照注册号</div>
            @endif
        </div>
        <div class="mview-footer">
            <p>法人: {{ $templateMini->legal_persona_name }} 法人微信号:{{ $templateMini->legal_persona_wechat }}</p>
            <div class="mview-btn-group">
                <a href="/admin/template/mini_update/{{ $templateMini->id }}" class="mview-btn">企业信息详情</a>
            </div>
        </div>
    </div>
    @empty
    <div class="mview-card-item">
        <div class="mview-footer">
            <p>当前暂无模板，添加模板后后续可以快速选择企业注册小程序；无需重复填写企业信息。</p>
        </div>
    </div>
    @endforelse
</div>
<a href="/admin/template/mini_add" class="m-btn-bottom m-bg-primary">添加新的企业信息模版</a>
@endsection
